<script setup>
import {ref,onBeforeMount} from "vue"
import { useRouter } from 'vue-router';
const use = useRouter()
const id = ref("")
const urlParams = new URLSearchParams(window.location.search);
onBeforeMount(()=>{
    id.value = urlParams.get('param');
    use.push("/article?param="+id.value)
})


</script>
<template>

</template>